from tkinter import *

root=Tk()

w=Spinbox(root,from_=0,to=10)
w.pack()

mainloop()
